﻿
Partial Class UserCuntrols_GoogleAjax
    Inherits System.Web.UI.UserControl
    Protected _TextContril As String
    Property TextControl() As String
        Get
            Return _TextContril
        End Get
        Set(ByVal value As String)
            _TextContril = value
        End Set
    End Property

    Protected _ButtonControl As String
    Property ButtonControl() As String
        Get
            Return _ButtonControl
        End Get
        Set(ByVal value As String)
            _ButtonControl = value
        End Set
    End Property

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "GoogleSearch", [String].Format("<script type=""text/javascript"" src=""http://www.google.com/jsapi?key={0}""></script>", ConfigurationManager.AppSettings("GoogleSearchAPIKey")))
    End Sub
End Class
